﻿
namespace GUISharePointExtractor
{
    using System;
    using System.Configuration;
    using System.Collections.Generic;
    using System.Text;

    class AppLocalSettings : ApplicationSettingsBase 
    {
        [UserScopedSetting()]
        [DefaultSettingValue("")]
        public string SiteURL
        {
            get
            {
                return ((string)this["SiteURL"]);
            }
            set
            {
                this["SiteURL"] = (string)value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("")]
        public string NewName
        {
            get
            {
                return ((string)this["NewName"]);
            }
            set
            {
                this["NewName"] = (string)value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("")]
        public string OutputDirectory
        {
            get
            {
                return ((string)this["OutputDirectory"]);
            }
            set
            {
                this["OutputDirectory"] = (string)value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("sites")]
        public string Root
        {
            get
            {
                return ((string)this["Root"]);
            }
            set
            {
                this["Root"] = (string)value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("STS#0")] 
        public string SiteDefinition
        {
            get
            {
                return ((string)this["SiteDefinition"]);
            }
            set
            {
                this["SiteDefinition"] = (string)value;
            }
        }
        [UserScopedSetting()]
        [DefaultSettingValue("")] 
        public string List
        {
            get
            {
                return ((string)this["List"]);
            }
            set
            {
                this["List"] = (string)value;
            }
        }

        
        [UserScopedSetting()]
        [DefaultSettingValue("")] 
        public string Folder
        {
            get
            {
                return ((string)this["Folder"]);
            }
            set
            {
                this["Folder"] = (string)value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("false")] 
        public bool ExtractDesign
        {
            get
            {
                return ((bool)this["ExtractDesign"]);
            }
            set
            {
                this["ExtractDesign"] = (bool)value;
            }
        }

        
        [UserScopedSetting()]
        [DefaultSettingValue("true")] 
        public bool ExtractUsers
        {
            get
            {
                return ((bool)this["ExtractUsers"]);
            }
            set
            {
                this["ExtractUsers"] = (bool)value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("false")]
        public bool ExtractViews
        {
            get
            {
                return ((bool)this["ExtractViews"]);
            }
            set
            {
                this["ExtractViews"] = (bool)value;
            }
        }

        
        [UserScopedSetting()]
        [DefaultSettingValue("false")]
        public bool ExportGalleries
        {
            get
            {
                return ((bool)this["ExportGalleries"]);
            }
            set
            {
                this["ExportGalleries"] = (bool)value;
            }
        }

        

        [UserScopedSetting()]
        [DefaultSettingValue("true")] 
        public bool ExtractSubSites
        {
            get
            {
                return ((bool)this["ExtractSubSites"]);
            }
            set
            {
                this["ExtractSubSites"] = (bool)value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("false")] 
        public bool UseDateThreshold
        {
            get
            {
                return ((bool)this["UseDateThreshold"]);
            }
            set
            {
                this["UseDateThreshold"] = (bool)value;
            }
        }

        [UserScopedSetting()]
        [DefaultSettingValue("false")] 
        public bool ExportVersions
        {
            get
            {
                return ((bool)this["ExportVersions"]);
            }
            set
            {
                this["ExportVersions"] = (bool)value;
            }
        }

               
        [UserScopedSetting()]
        [DefaultSettingValue("false")] 
        public bool ExportOnlyLibraries
        {
            get
            {
                return ((bool)this["ExportOnlyLibraries"]);
            }
            set
            {
                this["ExportOnlyLibraries"] = (bool)value;
            }
        }
        
        [UserScopedSetting()]
        [DefaultSettingValue("false")] 
        public bool Compressed
        {
            get
            {
                return ((bool)this["Compressed"]);
            }
            set
            {
                this["Compressed"] = (bool)value;
            }
        }

    }

}
